package hb.software.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import domain.BaseEntity;

@Entity
@Table(name = "T_teacher")
public class Teacher extends BaseEntity<Long> {
	@ManyToOne
	@JoinColumn(name = "Category_ID")
	TeacherCategory teacherCategory;
	public TeacherCategory getTeacherCategory() {
		return teacherCategory;
	}

	public void setTeacherCategory(TeacherCategory teacherCategory) {
		this.teacherCategory = teacherCategory;
	}

	private static final long serialVersionUID = 4475744750767977852L;

	@Column
	String name;

	@Column
	String age;

	@Column
	String score;

	@Column
	String address;

	@Column
	String major;

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getId() {
		return (Long) id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

}